package com.sen.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sen.entity.DruginfoEntity;
import com.sen.entity.WarehouseEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 库存信息表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-01-08 17:54:40
 */
@Mapper
public interface WarehouseDao extends BaseMapper<WarehouseEntity> {

    void updCount(@Param("count") Integer count, @Param("lno") Integer lno);

    IPage<DruginfoEntity> queryList(@Param("page") Page<DruginfoEntity> page, @Param("advent") Map<String, String> advent, @Param("types") List<Integer> types);

    List<WarehouseEntity> queryLnoByMid(Integer mid);
}
